<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>跟进计划</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">

    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>

    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/js/need/verfont.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

    <link rel="stylesheet" href="/css/skin.css"/>
    <style>
        .table{
            border: none;
        }
        #followPlanForm > thead > tr > th {
            height: 42px;
            border: none;
            background: #f0f1f7;
            font-size: 13px;
        }
        #followPlanForm > tbody > tr:first-child > td {
            border: none;
        }
        #followPlanForm > tbody > tr > td {
            border-color: #edf1f8;
            background: none;
            border-right: none;
            border-left: none;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <input type="hidden" id="qx" value="2">
    <div class="card">
        <div class="card-header">
            <h1>跟进计划</h1>
        </div>
        <div class="card-body">
            <!-- 全部 本周 本月 本年 -->
            <input type="text" hidden id="followType">
            <ul class="new-tabs">
                <li class="nav-item active">
                    <a href="#wholeCountryContent" data-toggle="tab" aria-expanded="false" id="wholeCountry" value="1" onclick="selectPlan('followAll')">全部跟进</a>
                </li>
                <li class="nav-item">
                    <a href="#companyContent" data-toggle="tab" aria-expanded="false" id="company" value="2" onclick="selectPlan('plan')">计划跟进</a>
                </li>
            </ul>
            <div class="row content-action">
                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                    <!-- 全部 本周 本月 本年 -->
                    <div class="time-search pull-left">
                        <input type="hidden" id="dateType" name="dateType"/>
                        <div class="all active-second" onclick="selectTime('all')">全部</div>
                        <div class="today"  onclick="selectTime('today')">今天</div>
                        <div class="week"  onclick="selectTime('week')">本周</div>
                        <div class="month" onclick="selectTime('month')">本月</div>
                        <div class="year" onclick="selectTime('year')">本年</div>
                    </div>
                </div>
                <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
                    <div class="pull-right">
                        <button class="btn btn-default btn-senior" data-toggle="collapse"
                                data-target="#filterContent" aria-expanded="false"
                                aria-controls="filterContent">
                            <i class="mdi mdi-sort-variant"></i>高级筛选
                        </button>
                        <div class="min-search pull-left" style="margin-left: 12px;">
                            <input class="form-control" type="text" placeholder="请输入客户名称"
                                   id="customerName" name="customerName">
                            <button class="btn btn-primary" type="button" onclick="searchOrderList(1)">
                                <i class="mdi mdi-magnify"></i><span>搜索</span>
                            </button>
                        </div>
                        <button class="btn btn-success" data-toggle="modal"  id="addFollowBtn"><i class="mdi mdi-plus-circle-outline"></i>新增计划</button>
                    </div>
                </div>
            </div>
            <div class="collapse filter-content" id="filterContent">
                <div class="row">
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="customerName2">客户名称</label>
                        <div>
                            <input class="form-control" type="text" placeholder="请输入客户名称"
                                   id="customerName2" name="customerName2">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="contactPerson">联系人名称</label>
                        <div>
                            <input class="form-control" type="text" placeholder="请输入联系人名称"
                                   id="contactPerson" name="contactPerson">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="createPeopleName">所属人</label>
                        <div>
                            <input class="form-control" type="text" placeholder="请输入联系人名称"
                                   id="createPeopleName" name="createPeopleName">
                        </div>
                    </div>

                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label" for="startDate">计划跟进时间</label>
                        <div class="form-content input-group">
                            <input type="text" id="startDate" class="form-control date-input"
                                   placeholder="请输入起始时间">
                            <span class="input-group-addon">至</span>
                            <input type="text" id="endDate" class="form-control date-input"
                                   placeholder="请输入截止时间">
                        </div>
                    </div>
                    <div class="clearfix hidden-xs"></div>
                    <div class="pull-right form-group col-lg-2 col-md-4 col-sm-6 col-xs-12">
                        <label>&nbsp;</label>
                        <div class="text-right">
                            <button class="btn btn-primary" type="button" id="btn-search" onclick="searchOrderList(2)">
                                <i class="mdi mdi-magnify"></i><span>搜索</span></button>
                            <button class="btn btn-default" onclick="clearAllData()">重置</button>
                        </div>
                    </div>
                </div>
            </div>
            <table id="followPlanForm"></table>
        </div>
    </div>
</div>


<!-- 新增计划 弹窗 -->
<div class="modal fade modal-edit" tabindex="-1" role="dialog" id="addInputMoney">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4></h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" autocomplete="off" style="padding: 10px;">
                    <input type="hidden" id="cpFollowPlanIdHide">
                    <input type="hidden" id="customerId">
                    <div class="form-group" id="customerType">
                        <label class="col-xs-3 control-label label-required">客户名称</label>
                        <div class="col-xs-7">
                            <select id="customerInput" name="customerInput" class="form-control selectpicker" data-live-search="true" type="text" title="请选择">
                                <option value="loading">正在加载数据，请稍后...</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-3 control-label label-required">联系人姓名</label>
                        <div class="col-xs-7">
                            <input onkeyup="changeName();" id="name" type="text" class="form-control" placeholder="请输入联系人姓名" autocomplete="off">
                            <ul id="nameBox" class="dropdown-menu"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-3 control-label label-required">联系人电话</label>
                        <div class="col-xs-7">
                            <input id="phone" type="text" class="form-control" placeholder="请输入联系人电话"  onkeyup="value=value.replace( /^[\u4e00-\u9fa5-Za-z]{0,30}$/,'')" maxlength="12">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-3 control-label label-required">计划跟进时间</label>
                        <div class="col-xs-7">
                            <input type="text" class="form-control bottomInput" id="planDate" placeholder="请选择跟进计划时间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-3 control-label label-required">是否提醒</label>
                        <div class="col-xs-7">
                            <select id="planStatus" class="form-control" type="text" title="请选择">
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" data-target="#addInputMoney">取消</button>
                <button type="button" class="btn btn-primary" onclick="addFollowPlan()">提交</button>
            </div>
        </div>
    </div>
</div>

</body>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/input-tag.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 拖动 -->
<script src="/js/bootstrap-table/extensions/resizable/bootstrap-table-resizable.min.js"></script>
<script src="/js/crm/common/colResizable-1.6.min.js"></script>

<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<script src="/js/verSelect.2.0.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/followPlanManager/followPlanForm.js"></script>
</html>